package com.itheima.consumer.listener;

import org.springframework.amqp.rabbit.annotation.RabbitListener;

/**
 * @version 1.0
 * @Author lwx
 * @Date 2024/12/27 14:46
 */
//@Component
public class MQListener {

    @RabbitListener(queues = "test")
    public void listener(String msg) {
        System.out.println("消费者接收到消息：" + msg);
    }

}
